<%@ page contentType="text/html; charset=UTF-8"%>
<%
    String ajax = request.getParameter("n");
    //当执行Ajax自定义页面时执行以下操作
    if(ajax!=null && ajax.length()>0){
        response.getWriter().print(request.getAttribute("loginTicket")+"&"+request.getAttribute("flowExecutionKey"));
    } else {

        //正常cas执行
%>
<script>window.location.href = "/cas/login";</script>
<%
    }
%>
